package learn1;

import java.util.ArrayList;
import java.util.Collections;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class test1 {
    public static void main(String[] args) {
        //Java中单列集合Stream流单列集合的中间操作和最终操作

        //创建一个集合
        ArrayList<String> list1 = new ArrayList<String>();
        Collections.addAll(list1, "a", "b", "c", "d", "e");
        //获取集合的流
        list1.stream().forEach(System.out::println);
        Collectors.toList();
    }
}
